package com.hh.demo.constants;

/**
 * @author 黄浩
 * @create 2022-07-15 10:49
 */
public enum ExceptionEnum {
    OTHER_EXCEPTION("5000","出了点状况。。。"),
    NULL_EXCEPTION("4000","参数不能为空！");
    //错误码
    private String code;
    //错误信息
    private String message;

    ExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
